package com.item.dao.model;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class UnreadExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public UnreadExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andUseridIsNull() {
            addCriterion("userid is null");
            return (Criteria) this;
        }

        public Criteria andUseridIsNotNull() {
            addCriterion("userid is not null");
            return (Criteria) this;
        }

        public Criteria andUseridEqualTo(String value) {
            addCriterion("userid =", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridNotEqualTo(String value) {
            addCriterion("userid <>", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridGreaterThan(String value) {
            addCriterion("userid >", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridGreaterThanOrEqualTo(String value) {
            addCriterion("userid >=", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridLessThan(String value) {
            addCriterion("userid <", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridLessThanOrEqualTo(String value) {
            addCriterion("userid <=", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridLike(String value) {
            addCriterion("userid like", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridNotLike(String value) {
            addCriterion("userid not like", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridIn(List<String> values) {
            addCriterion("userid in", values, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridNotIn(List<String> values) {
            addCriterion("userid not in", values, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridBetween(String value1, String value2) {
            addCriterion("userid between", value1, value2, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridNotBetween(String value1, String value2) {
            addCriterion("userid not between", value1, value2, "userid");
            return (Criteria) this;
        }

        public Criteria andModule1IsNull() {
            addCriterion("module1 is null");
            return (Criteria) this;
        }

        public Criteria andModule1IsNotNull() {
            addCriterion("module1 is not null");
            return (Criteria) this;
        }

        public Criteria andModule1EqualTo(Integer value) {
            addCriterion("module1 =", value, "module1");
            return (Criteria) this;
        }

        public Criteria andModule1NotEqualTo(Integer value) {
            addCriterion("module1 <>", value, "module1");
            return (Criteria) this;
        }

        public Criteria andModule1GreaterThan(Integer value) {
            addCriterion("module1 >", value, "module1");
            return (Criteria) this;
        }

        public Criteria andModule1GreaterThanOrEqualTo(Integer value) {
            addCriterion("module1 >=", value, "module1");
            return (Criteria) this;
        }

        public Criteria andModule1LessThan(Integer value) {
            addCriterion("module1 <", value, "module1");
            return (Criteria) this;
        }

        public Criteria andModule1LessThanOrEqualTo(Integer value) {
            addCriterion("module1 <=", value, "module1");
            return (Criteria) this;
        }

        public Criteria andModule1In(List<Integer> values) {
            addCriterion("module1 in", values, "module1");
            return (Criteria) this;
        }

        public Criteria andModule1NotIn(List<Integer> values) {
            addCriterion("module1 not in", values, "module1");
            return (Criteria) this;
        }

        public Criteria andModule1Between(Integer value1, Integer value2) {
            addCriterion("module1 between", value1, value2, "module1");
            return (Criteria) this;
        }

        public Criteria andModule1NotBetween(Integer value1, Integer value2) {
            addCriterion("module1 not between", value1, value2, "module1");
            return (Criteria) this;
        }

        public Criteria andModule2IsNull() {
            addCriterion("module2 is null");
            return (Criteria) this;
        }

        public Criteria andModule2IsNotNull() {
            addCriterion("module2 is not null");
            return (Criteria) this;
        }

        public Criteria andModule2EqualTo(Integer value) {
            addCriterion("module2 =", value, "module2");
            return (Criteria) this;
        }

        public Criteria andModule2NotEqualTo(Integer value) {
            addCriterion("module2 <>", value, "module2");
            return (Criteria) this;
        }

        public Criteria andModule2GreaterThan(Integer value) {
            addCriterion("module2 >", value, "module2");
            return (Criteria) this;
        }

        public Criteria andModule2GreaterThanOrEqualTo(Integer value) {
            addCriterion("module2 >=", value, "module2");
            return (Criteria) this;
        }

        public Criteria andModule2LessThan(Integer value) {
            addCriterion("module2 <", value, "module2");
            return (Criteria) this;
        }

        public Criteria andModule2LessThanOrEqualTo(Integer value) {
            addCriterion("module2 <=", value, "module2");
            return (Criteria) this;
        }

        public Criteria andModule2In(List<Integer> values) {
            addCriterion("module2 in", values, "module2");
            return (Criteria) this;
        }

        public Criteria andModule2NotIn(List<Integer> values) {
            addCriterion("module2 not in", values, "module2");
            return (Criteria) this;
        }

        public Criteria andModule2Between(Integer value1, Integer value2) {
            addCriterion("module2 between", value1, value2, "module2");
            return (Criteria) this;
        }

        public Criteria andModule2NotBetween(Integer value1, Integer value2) {
            addCriterion("module2 not between", value1, value2, "module2");
            return (Criteria) this;
        }

        public Criteria andModule3IsNull() {
            addCriterion("module3 is null");
            return (Criteria) this;
        }

        public Criteria andModule3IsNotNull() {
            addCriterion("module3 is not null");
            return (Criteria) this;
        }

        public Criteria andModule3EqualTo(Integer value) {
            addCriterion("module3 =", value, "module3");
            return (Criteria) this;
        }

        public Criteria andModule3NotEqualTo(Integer value) {
            addCriterion("module3 <>", value, "module3");
            return (Criteria) this;
        }

        public Criteria andModule3GreaterThan(Integer value) {
            addCriterion("module3 >", value, "module3");
            return (Criteria) this;
        }

        public Criteria andModule3GreaterThanOrEqualTo(Integer value) {
            addCriterion("module3 >=", value, "module3");
            return (Criteria) this;
        }

        public Criteria andModule3LessThan(Integer value) {
            addCriterion("module3 <", value, "module3");
            return (Criteria) this;
        }

        public Criteria andModule3LessThanOrEqualTo(Integer value) {
            addCriterion("module3 <=", value, "module3");
            return (Criteria) this;
        }

        public Criteria andModule3In(List<Integer> values) {
            addCriterion("module3 in", values, "module3");
            return (Criteria) this;
        }

        public Criteria andModule3NotIn(List<Integer> values) {
            addCriterion("module3 not in", values, "module3");
            return (Criteria) this;
        }

        public Criteria andModule3Between(Integer value1, Integer value2) {
            addCriterion("module3 between", value1, value2, "module3");
            return (Criteria) this;
        }

        public Criteria andModule3NotBetween(Integer value1, Integer value2) {
            addCriterion("module3 not between", value1, value2, "module3");
            return (Criteria) this;
        }

        public Criteria andModule4IsNull() {
            addCriterion("module4 is null");
            return (Criteria) this;
        }

        public Criteria andModule4IsNotNull() {
            addCriterion("module4 is not null");
            return (Criteria) this;
        }

        public Criteria andModule4EqualTo(Integer value) {
            addCriterion("module4 =", value, "module4");
            return (Criteria) this;
        }

        public Criteria andModule4NotEqualTo(Integer value) {
            addCriterion("module4 <>", value, "module4");
            return (Criteria) this;
        }

        public Criteria andModule4GreaterThan(Integer value) {
            addCriterion("module4 >", value, "module4");
            return (Criteria) this;
        }

        public Criteria andModule4GreaterThanOrEqualTo(Integer value) {
            addCriterion("module4 >=", value, "module4");
            return (Criteria) this;
        }

        public Criteria andModule4LessThan(Integer value) {
            addCriterion("module4 <", value, "module4");
            return (Criteria) this;
        }

        public Criteria andModule4LessThanOrEqualTo(Integer value) {
            addCriterion("module4 <=", value, "module4");
            return (Criteria) this;
        }

        public Criteria andModule4In(List<Integer> values) {
            addCriterion("module4 in", values, "module4");
            return (Criteria) this;
        }

        public Criteria andModule4NotIn(List<Integer> values) {
            addCriterion("module4 not in", values, "module4");
            return (Criteria) this;
        }

        public Criteria andModule4Between(Integer value1, Integer value2) {
            addCriterion("module4 between", value1, value2, "module4");
            return (Criteria) this;
        }

        public Criteria andModule4NotBetween(Integer value1, Integer value2) {
            addCriterion("module4 not between", value1, value2, "module4");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("create_time is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("create_time is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("create_time =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("create_time <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("create_time >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("create_time >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("create_time <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("create_time <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("create_time in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("create_time not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("create_time between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("create_time not between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andModifyTimeIsNull() {
            addCriterion("modify_time is null");
            return (Criteria) this;
        }

        public Criteria andModifyTimeIsNotNull() {
            addCriterion("modify_time is not null");
            return (Criteria) this;
        }

        public Criteria andModifyTimeEqualTo(Date value) {
            addCriterion("modify_time =", value, "modifyTime");
            return (Criteria) this;
        }

        public Criteria andModifyTimeNotEqualTo(Date value) {
            addCriterion("modify_time <>", value, "modifyTime");
            return (Criteria) this;
        }

        public Criteria andModifyTimeGreaterThan(Date value) {
            addCriterion("modify_time >", value, "modifyTime");
            return (Criteria) this;
        }

        public Criteria andModifyTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("modify_time >=", value, "modifyTime");
            return (Criteria) this;
        }

        public Criteria andModifyTimeLessThan(Date value) {
            addCriterion("modify_time <", value, "modifyTime");
            return (Criteria) this;
        }

        public Criteria andModifyTimeLessThanOrEqualTo(Date value) {
            addCriterion("modify_time <=", value, "modifyTime");
            return (Criteria) this;
        }

        public Criteria andModifyTimeIn(List<Date> values) {
            addCriterion("modify_time in", values, "modifyTime");
            return (Criteria) this;
        }

        public Criteria andModifyTimeNotIn(List<Date> values) {
            addCriterion("modify_time not in", values, "modifyTime");
            return (Criteria) this;
        }

        public Criteria andModifyTimeBetween(Date value1, Date value2) {
            addCriterion("modify_time between", value1, value2, "modifyTime");
            return (Criteria) this;
        }

        public Criteria andModifyTimeNotBetween(Date value1, Date value2) {
            addCriterion("modify_time not between", value1, value2, "modifyTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}